import base from '@/api/baseurl';
import request from '@/utils/request'

export function fetchListTCDirectReference(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/TCDirectReference/findTCDirectReference',
    method: 'get',
    params: query
  })
}
export function fetchListbsall(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/TCDirectReference/findbsall',
    method: 'get',
    params: query
  })
}
export function fetchListtsall(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/TCDirectReference/findtsall',
    method: 'get',
    params: query
  })
}
//单行删除
export function deleteTCDirectReference(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/TCDirectReference/deleteTCDirectReference',
    method: 'get',
    params: query
  })
}



export function addTCDirectReference(data) {
  return request({
    baseURL:base.appBaseApi,
    url: '/TCDirectReference/addTCDirectReference',
    method: 'post',
    data
  })
}

export function updateTCDirectReference(data) {
  return request({
    baseURL:base.appBaseApi,
    url: '/TCDirectReference/updateTCDirectReference',
    method: 'post',
    data
  })
}
  export function batchDeleteTCDirectReference(data) {
    return request({
      baseURL:base.appBaseApi,
      url: '/TCDirectReference/deleteTCDirectReferenceBatch',
      method: 'post',
      data
    })
  }
